<?php
namespace app\common\model;

use think\Model;

class GoodsComments extends Model
{
	public function order()
    {
        return $this->hasOne('Orders', 'id', 'order_id');
    }

    public function good()
    {
    	return $this->hasOne('OrdersGoods','good_id','good_id');
    }

    public function member(){
    	return $this->hasOne('Member','id','mid');
    }

    public function agent(){
    	return $this->hasOne('Agent','id','agent_id');
    }

    public function user(){
    	return $this->hasOne('User','id','uid');
    }
}